package org.example.dao.impl;

import org.example.dao.StudentDao;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class StudentDaoImpl implements StudentDao {
    private int[] array;
    private List<String> list;
    private Set<String> set;
    private Map<String,String> map;

    private Properties properties;

    public StudentDaoImpl setArray(int[] array) {
        this.array = array;
        return this;
    }

    public StudentDaoImpl setList(List<String> list) {
        this.list = list;
        return this;
    }

    public StudentDaoImpl setSet(Set<String> set) {
        this.set = set;
        return this;
    }

    public StudentDaoImpl setMap(Map<String, String> map) {
        this.map = map;
        return this;
    }

    public StudentDaoImpl setProperties(Properties properties) {
        this.properties = properties;
        return this;
    }

    @Override
    public void save() {
        System.out.println("StudentDao的实现");
        System.out.println(array);
        System.out.println(list);
        System.out.println(set);
        System.out.println(map);
        System.out.println(properties);
    }
}
